package com.netforce.core.report;

import com.netforce.core.aspect.TestInjectCode;

public interface Reports
{
  public void info(String aMessage);
  public void error(String aMessage, Exception anException);

  public class DefaultReports implements Reports
  {
    @TestInjectCode
    public void info(String aMessage)
    {
      System.out.println(aMessage);
    }
    
    @Override
    public void error(String aMessage, Exception anException)
    {
      System.out.println(aMessage);
      anException.printStackTrace();
    }
  }
}
